using System;
using System.Drawing;
using System.ComponentModel;
using System.Web.UI.WebControls;


namespace GURUCORE.Portal.AspNet.Control
{
    [DefaultProperty("Text")]
    [ToolboxBitmap(typeof(TextBoxS), "resTextBoxS.ico")]
    [Description("this TextBox replace <XSS injection script> in its Text property")]
    public class TextBoxS : System.Web.UI.WebControls.TextBox
    {
        public new string Text
        {
            get
            {
                return GURUCORE.Lib.Core.Security.Web.XSS.Fix(base.Text);
            }
            set
            {
                if (value != null)
                {
                    base.Text = GURUCORE.Lib.Core.Security.Web.XSS.Fix(value);
                }
            }
        }	// end Text

    }
}
